<?php
	if($usertype === "student"){
		$fullname = $student->lastname.', '.$student->firstname.' '.$student->middlename;
	}
?>
<?if($usertype === "student"):?>
<div class="panel panel-primary">
  <div class="panel-heading">
  	 <h3 class="panel-title">
  	 	<i class="fa fa-tag"></i>&nbsp; Student Library Profile
  	 	<div class="btn-group">
  	 		<a href="<?=site_url('circulation/borrow/'.$usertype.'/'.$id)?>" class="btn btn-mini btn-default"><i class="fa fa-book"></i>&nbsp; Borrow Media</a>
  	 		<a href="<?=site_url('circulation/profile/'.$usertype.'/'.$id)?>" class="btn btn-default btn-mini"><i class="glyphicon glyphicon-tower"></i>&nbsp; Profile</a>
  	 		<a href="<?=site_url('circulation/history/'.$usertype.'/'.$id)?>" class="btn btn-default btn-mini"><i class="glyphicon glyphicon-align-justify"></i>&nbsp; Transaction History</a>
  	 		<a href="<?=site_url('librarian/students')?>" class="btn btn-default btn-mini"><i class="fa fa-search"></i>&nbsp; Go to Search</a>
		</div>
  	 </h3>
  	 <span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span>
  </div>

  <div class="panel-body" style="padding : 3px !important;">
    <div class="row">
		<div class="large-2 columns">
			<ul class="clearing-thumbs" data-clearing>
				<li><a href="<?=student_photo($student->idno,$student->gender);?>"><img data-caption="<?=$fullname;?>" class="img-rounded" style="border:2px solid #000;width:140px;" src="<?=student_photo($student->idno,$student->gender);?>" ></a></li>
			</ul>
		</div>
		<div>
			<div class="row">
				<div class="large-6 columns">
					<ul style="list-style-type:none;">
						<li><?=ucwords($fullname);?></li>
						<li><strong><?=ucwords($student->level_desc);?></strong></li>
						<li><?=$student->idno;?></li>
					</ul>
				</div>
				<div class="large-6 columns">
				</div>
			</div>
		</div>
	</div>
  </div>
</div>
<?else:?>
<div class="panel panel-primary">
  <div class="panel-heading">
  	 <h3 class="panel-title">
  	 	<i class="fa fa-tag"></i>&nbsp; Employee Library Profile
  	 	<div class="btn-group">
  	 		<a href="<?=site_url('circulation/borrow/'.$usertype.'/'.$id)?>" class="btn btn-default btn-mini"><i class="fa fa-book"></i>&nbsp; Borrow Media</a>
  	 		<a href="<?=site_url('circulation/history/'.$usertype.'/'.$id)?>" class="btn btn-default btn-mini"><i class="glyphicon glyphicon-align-justify"></i>&nbsp; Transaction History</a>
  	 		<a href="<?=site_url('librarian/employees')?>" class="btn btn-default btn-mini"><i class="fa fa-search"></i>&nbsp; Go to Search</a>
		</div>
  	 </h3>
  	 <span class="pull-right clickable"><i class="glyphicon glyphicon-chevron-up"></i></span>
  </div>

  <div class="panel-body" style="padding : 3px !important;">
   <div class="row">
		<div class="large-2 columns">
			<ul class="clearing-thumbs" data-clearing>
				<li><a href="<?=employee_photo($fullname,$employee->gender);?>"><img data-caption="<?=$fullname;?>" class="img-rounded" style="border:2px solid #000;width:140px;" src="<?=employee_photo($employee->given_id,$employee->gender);?>" ></a></li>
			</ul>
		</div>
		<div>
			<div class="row">
				<div class="large-6 columns">
					<ul style="list-style-type:none;">
						<li><?=ucwords($fullname);?></li>
						<li><strong><?=ucwords($employee->role);?></strong></li>
						<li><?=$employee->given_id;?></li>
					</ul>
				</div>
				<div class="large-6 columns">
				</div>
			</div>
		</div>
	</div>
  </div>
</div>
<?endif?>